package SSF.OS;

import SSF.OS.*;
import com.renesys.raceway.DML.*;

/**
 * Minimalistic interface for protocol session monitors. Will be obsoleted,
 * try not to use.
 */
public interface ProtocolMonitor {

  /** Peek at every protocol message push()ed into the monitored protocol session. */
  public void receive(ProtocolMessage packet, ProtocolSession fromSession,
                      ProtocolSession toSession);

  /** Configure the Monitor */
  public void config(ProtocolSession ownerProtocol, Configuration cfg) throws configException;

  /** Any other initialization depending on other protocols should be done
   *  in the "init" phase.
   */
  public void init();
}

